# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+aur@gmail.com>

pkgname=perl-gdtextutil
pkgver=0.86
pkgrel=7
pkgdesc="Classes for string handling with GD"
arch=('any')
url="https://search.cpan.org/dist/GDTextUtil"
license=('GPL' 'PerlArtistic')
depends=('perl-gd>=1')
options=('!emptydirs')
source=(https://www.cpan.org/authors/id/M/MV/MVERB/GDTextUtil-$pkgver.tar.gz)
sha256sums=('886ecbf85cfe94f4135ee5689c4847a9ae783ecb99e6759e12c734f2dd6116bc')

build() {
  cd  "$srcdir"/GDTextUtil-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  "$srcdir"/GDTextUtil-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
